var ue = UE.getEditor('articleContent');

var form = document.forms.addForm;
var articleTypeId = form.articleTypeId;

console.info(sys.form.param(form).toString());
form.onsubmit = function(event){

	$.post(
		"admin-article-add.let",
		sys.form.param(form).toString(),
		function(data){
			sys.loading.hide();
			if(data.code==200){
				sys.toastr.success("添加成功");
				form.reset();
				ue.setContent("");
			}else{
				sys.toastr.error(data.message);
			}
		},"json"
	);

	return false;
}